package com.merry.spring5.aop.annotation;

import org.springframework.stereotype.Component;

@Component("calculator")
public class CalculatorImpl implements Calculator{
    public int add(int i, int j) {
        System.out.println(i+j);
        return i+j;
    }

    public int sub(int i, int j) {
        System.out.println(i-j);
        return i-j;
    }
}
